package my.sorter.bean;

import java.io.Serializable;

/**
 * @author zyf10
 */
public class LoginBean implements Serializable{

    private static final long serialVersionUID = -2429656181472667795L;
    /**
     * 登入账户 邮箱
     */
    String email;
    /**
     * 登入密码
     */
    String password;
    /**
     * 失败计数
     */
    Integer failureCount;
    /**
     * 账户是否可用
     */
    boolean islegal;
    /**
     * 是否登入成功
     */
    boolean isSuccess;
    /**
     * 失败原因
     */
    String failReason;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getFailureCount() {
        return failureCount;
    }

    public void setFailureCount(Integer failureCount) {
        this.failureCount = failureCount;
    }

    public boolean isIslegal() {
        return islegal;
    }

    public void setIslegal(boolean islegal) {
        this.islegal = islegal;
    }

    public boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess(boolean success) {
        isSuccess = success;
    }

    public String getFailReason() {
        return failReason;
    }

    public void setFailReason(String failReason) {
        this.failReason = failReason;
    }

    @Override
    public String toString() {
        return "LoginBean{" +
                "email='" + email + '\'' +
                ", password='" + password + '\'' +
                ", failureCount=" + failureCount +
                ", islegal=" + islegal +
                ", isSuccess=" + isSuccess +
                ", failReason='" + failReason + '\'' +
                '}';
    }
}
